﻿<UserControl x:Class="personalplaner.gui.stamm.views.DienstZeitDatumView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:conv="clr-namespace:personalplaner.common.converters;assembly=personalplaner.common"
        xmlns:c="clr-namespace:personalplaner.common.controls;assembly=personalplaner.common"
        xmlns:w="clr-namespace:personalplaner.gui.stamm.windows"
        xmlns:p="clr-namespace:personalplaner.gui.Properties">

    <Grid>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <TextBlock Text="Datum" FontSize="16" FontWeight="Heavy" Margin="40,0,0,20"/>
        
        <TextBlock Text="Von" Grid.Row="1" HorizontalAlignment="Left" Margin="20,0,10,0"/>
        <DatePicker Grid.Column="1" Grid.Row="1" SelectedDate="{Binding Von}"/>

        <TextBlock Text="Bis" Grid.Row="2" HorizontalAlignment="Left" Margin="20,0,10,0"/>
        <DatePicker Grid.Column="1" Grid.Row="2" SelectedDate="{Binding Bis}"/>

        <TextBlock Text="Zeiten von Team nehmen" Grid.Row="3" HorizontalAlignment="Left" Margin="20,0,10,0"/>
        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="3">
            <CheckBox Grid.Column="1" Grid.Row="3" Name="checkbox" IsChecked="{Binding IsZeitVonAbteilung}" VerticalAlignment="Center"/>
            <Image Source="/personalplaner.gui;component/resources/images/Info.png" Height="16" Width="16" Margin="10,3,0,2" ToolTip="{x:Static p:Resources.VonTeamNehmenToolTip}"/>
        </StackPanel>
        <!--<CheckBox Grid.Column="1" Grid.Row="3" Name="checkbox" IsChecked="{Binding DataContext.IsZeitVonAbteilung, RelativeSource={RelativeSource AncestorType={x:Type w:DienstZeitWizard}}}"/>-->

    </Grid>
</UserControl>
